package com.chinamobile.websocket.websocket.scene;

import com.chinamobile.websocket.domain.dto.MessageDto;
import com.chinamobile.websocket.domain.dto.SceneDto;
import com.chinamobile.websocket.websocket.cache.EndpointImplCache;
import org.springframework.web.socket.WebSocketSession;

/**
 * @className: AbstractEndpointHandlerImpl
 * @description 场景抽象类
 * @author: fanzhijun
 * @date: 2023/12/29
 **/
public abstract class AbstractEndpointHandlerImpl implements EndpointHandler {
    public AbstractEndpointHandlerImpl() {
        EndpointImplCache.setEndPointImplMap(getScene());
    }

    public abstract SceneDto getScene();

    @Override
    public String getMessage(MessageDto messageDto) {
        return null;
    }

    @Override
    public void dealOnMessage(String message, WebSocketSession session) {
    }
}
